.editor-contact-form-modal {
	padding: 0;

		/* override color of the expanded icon on the foldable card */
		.editor-contact-form-modal-fields .foldable-card.is-expanded .foldable-card__action.foldable-card__expand .gridicon {
			fill: $blue-medium;
		}

		/* removes the transform on the icon when opening the foldable card */
		button.foldable-card__action.foldable-card__expand .gridicon.gridicons-pencil {
			transform: none;
		}
}

.editor-contact-form-modal.dialog.card {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	max-width: 100%;

	@include breakpoint( ">660px" ) {
		top: 5%;
		bottom: 5%;
		left: 50%;
		margin-left: -275px;
		width: 550px;
	}
}

.editor-contact-form-modal .dialog__content {
	position: static;
	color: $gray-dark;
}

.editor-contact-form-modal .section-nav {
	z-index: z-index( '.dialog__backdrop', '.editor-contact-form-modal .section-nav' );
	padding: 0 16px;

	@include breakpoint( ">660px" ) {
		padding: 0;
	}
}

.editor-contact-form-modal .dialog__action-buttons {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	margin: 0;
}

.editor-contact-form-modal__secondary-actions {
	float: left;
	display: flex;
	justify-content: center;
	height: 40px;
}

.editor-contact-form-modal-fields,
.editor-contact-form-modal-settings {
	padding: 5px 20px;
	top: 65px;
	bottom: 74px;
	left: 0;
	right: 0;
	overflow-y: auto;
	position: absolute;
}

.editor-contact-form-modal-field__remove {
	color: lighten( $gray, 20% );
	cursor: pointer;
	transition: color 200ms;

	&:hover {
		color: $orange-fire;
	}
}

.editor-contact-form-modal-field__edit-wrapper {
	height: 100%;
}

.editor-contact-form-modal-field__edit-wrapper-button {
	width: 100%;
	margin-top: 15px;
	margin-bottom: 20px;
}

.editor-contact-form-modal-field__edit-wrapper.foldable-card__expand .editor-contact-form-modal-field__edit {
	width: 100%;
	padding-bottom: 6px;

	&.is-expanded {
		transform: rotate(0);
	}
}
